package com.mvprxjavartrofit.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import static com.mvprxjavartrofit.entity.Const.DB_NAME;
import static com.mvprxjavartrofit.entity.Const.DB_VERSION;

public class DbBaseHelpler extends SQLiteOpenHelper {

	public DbBaseHelpler(Context context) {
		super(context, DB_NAME, null, DB_VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		String sql = "create table user(id integer"
				+ "primary key,name varchar(20))";
		db.execSQL(sql);
	}

	@Override
	public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {

	}

}
